home *** CD-ROM | disk | FTP | other *** search
- -- background: 2731 from stack: in
- -- bmap block id: 3140
- -- flags: 0000
- -- background id: 0
- -- name:
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=0 top=32 right=317 bottom=512
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 2
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: Index
- ----- HyperTalk script -----
- on mouseUp
- get clickLine(the style of me)
- put line it of me into cardName
- if cardName is not empty then
- --select the whole line to show choice
- get offset(return & cardName,me) + 1
- select char it to length(cardName) + it of me
- wait 30
- --set cursor to watch
- --visual barn door open
- --go to card <your card name>
- select empty --Remove this line, for demonstration only.
- else
- exit mouseUp
- end if
- end mouseUp
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=136 top=320 right=342 bottom=241
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Rebuild Index
- ----- HyperTalk script -----
- on mouseUp
- global indexCard,sourceCard,refCard
- put the long name of this card into indexCard
- lock screen
- set cursor to 4
- put empty into background field Index
- go to refCard
- go to first card
- put the long name of this card into sourceCard
- repeat with i=1 to the number of cards
- put background field "Title" into title
- put background field "Author" into author
- put the id of this card into idNumber
- go to indexCard
- if title is not empty then
- put "ΓÇó Card " & i & " ΓÇó" & return after background field Index
- put "ΓÇ£" & title & "ΓÇ¥" & return after background field Index
- put "By:" & return after background field Index
- put author & return after background field Index
- put return after background field Index
- end if
- go to sourceCard
- go to next card
- put the long name of this card into sourceCard
- end repeat
- go to indexCard
- set the scroll of background field Index to 0
- unlock screen
- end mouseUp
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=261 top=320 right=342 bottom=361
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Exit Index
- ----- HyperTalk script -----
- on mouseUp
- global refCard
- visual iris close
- go to refCard
- end mouseUp
-
-